<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
    <head>
        <meta charset="UTF-8" />
        <title>Авторизация</title>
        <link rel="stylesheet" type="text/css" media="all" href="../resources/css/bootstrap.min.css"/>
        <link rel="stylesheet" type="text/css" media="all" href="../resources/css/login.css"/>
        <script src="../resources/js/jquery.min.js"></script>
        <script src="../resources/js/bootstrap.min.js"></script>
    </head>
    <body>
        <div class="container">
            <form th:action="@{/login}" method="post" class="form-signin">
                <h3 class="form-signin-heading">Пожалуйста, выполните вход в систему</h3>
                <input type="text" name="username" class="form-control" placeholder="Имя пользователя" required="" autofocus=""/>
                <input type="password" name="password" class="form-control" placeholder="Пароль" required=""/>
                <button type="submit" class="btn btn-primary btn-lg btn-block">Войти</button>
            </form>
            <div th:if="${param.error}" class="alert alert-danger" id="loginFailed">
                <span class="close" data-dismiss="alert">&times;</span>  
                Неверное имя пользователя или пароль
            </div>
            <div th:if="${param.logout}" class="alert alert-success" id="logoutSuccessed">
                <span class="close" data-dismiss="alert">&times;</span>
                Вы успешно вышли из системы
            </div>
        </div>
    </body>

</html>